package com.woniu.service.impl;

import com.woniu.adapter.WorkingProcedureTypeAdapter;
import com.woniu.outlet.po.WorkingProcedureTypePo;
import com.woniu.service.WorkingProcedureTypeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class WorkingProcedureTypeServiceImpl implements WorkingProcedureTypeService {

    @Autowired
    private WorkingProcedureTypeAdapter workingProcedureTypeAdapter;

    @Override
    public List<WorkingProcedureTypePo> findWorkingProcedureTypes() throws Exception {
        List<WorkingProcedureTypePo> workingProcedureTypePos = workingProcedureTypeAdapter.findWorkingProcedureTypes();
        return workingProcedureTypePos;
    }

    @Override
    public WorkingProcedureTypePo getWorkingProcedureTypeById(Long id) throws Exception {
        return workingProcedureTypeAdapter.getWorkingProcedureTypeById(id);
    }
}
